
interface  Shape{
    int d = 0;
    public int a = 1;
    public static int b = 2;
    public static final int c = 3;

    public abstract void draw();

    default public void test1(){
        System.out.println(112233);
    }
}

abstract class Cycle implements Shape{

}

class Rect implements Shape{
    @Override
    public void draw() {
        System.out.println("矩形！");
    }
}
public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        Shape shape1 = new Rect();
        drawMap(shape1);
    }
}
